package com.jsu.collegestudentadmissionsystem.utils;

import com.jsu.collegestudentadmissionsystem.dao.AdministratorDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class AcquireStatus {
    @Autowired
    AdministratorDao administratorDao;

    private Integer status = 1;
    public AcquireStatus() {
    }

    public Integer getStatus(){
        return status;
    }

    public void setStatus(Integer sta){
        administratorDao.setStatus(sta);
        status = sta;
    }

}
